<?php
namespace Home\Controller;
use Think\Controller;
use Think\Page;

class AboutController extends CommonController {
  public function contact(){
    $this->display('About/contact');
  }

  public function feedback(){
    $this->display('About/feedback');
  }

  public function privacy(){
    $this->display('About/privacy');
  }
  
  public function doFeedback(){
  	$m = D('Feedback');
    	
		if(!$m->create()){
			$this->error($m->getError());
		}
		$idNum=$m->add();
		if($idNum>0){
			$this->assign('info','反馈成功');
		}else{
			$this->assign('info','反馈失败');
		}
  	
    $this->display('Index/default');
  }
  
}